using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.Register.departmentsInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string Departments_ID= strid;
					ShowInfo(Departments_ID);
				}
			}
		}
		
	private void ShowInfo(string Departments_ID)
	{
		Maticsoft.BLL.Register.departmentsInfo bll=new Maticsoft.BLL.Register.departmentsInfo();
		Maticsoft.Model.Register.departmentsInfo model=bll.GetModel(Departments_ID);
		this.lblDepartments_ID.Text=model.Departments_ID;
		this.lblHospital_ID.Text=model.Hospital_ID;
		this.lblDepartments_Name.Text=model.Departments_Name;
		this.lblDepartments_Introduce.Text=model.Departments_Introduce;
		this.lblDepartments_AddTime.Text=model.Departments_AddTime.ToString();
		this.lblDepartments_Recoder.Text=model.Departments_Recoder;
		this.lblDepartments_LastAmendTime.Text=model.Departments_LastAmendTime.ToString();
		this.lblDepartments_LastAmendPerson.Text=model.Departments_LastAmendPerson;
		this.lblDepartments_State.Text=model.Departments_State;

	}


    }
}
